package org.nidy.programexercise.ThreadExercise;

public class ThreadDemo extends Thread{
    public ThreadDemo()
    {
    }
    public ThreadDemo(String name)
    {
        super(name);
    }
    @Override
    public void run()
    {
        for(int i=0;i<100;i++)
        {
            System.out.println(currentThread().getName()+" "+i);
        }
    }
}
